home *** CD-ROM | disk | FTP | other *** search
/ The Trig Explorer / The Trig Explorer.iso / mac / Explorer / LAT-LONG.dxr / 00010_Chack Drag ang Drop Answer.ls < prev    next >
Encoding:
Text File  |  1998-07-22  |  677 b   |  20 lines

  1. on beginSprite me
  2.   set the cursor of sprite the spriteNum of me to [member "Hand", member "Hand Mask"]
  3. end
  4.  
  5. on endSprite me
  6.   set the cursor of sprite the spriteNum of me to 0
  7. end
  8.  
  9. on mouseDown me
  10.   set the cursor of sprite the spriteNum of me to [member "Closed Hand", member "Closed Hand Mask"]
  11.   repeat while the stillDown
  12.     set the loc of sprite the spriteNum of me to point(the mouseH, the mouseV)
  13.     updateStage()
  14.   end repeat
  15.   set the cursor of sprite the spriteNum of me to [member "Hand", member "Hand Mask"]
  16.   if sprite 12 intersects 18 and sprite 13 intersects 20 and sprite 14 intersects 19 and sprite 15 intersects 17 then
  17.     go("Right Answer")
  18.   end if
  19. end
  20.